package com.dz.risk.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dz.risk.dao.ReportCodeLocatingTemplateDao;
import com.dz.risk.pojo.domain.ReportCodeLocatingTemplateEntity;
import com.dz.risk.service.ReportCodeLocatingTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Doke
 * @date 2021/9/23 13:55
 */
@Service
public class ReportCodeLocatingTemplateServiceImpl extends ServiceImpl<ReportCodeLocatingTemplateDao, ReportCodeLocatingTemplateEntity> implements ReportCodeLocatingTemplateService {

    private final ReportCodeLocatingTemplateDao reportCodeLocatingTemplateDao;

    @Autowired
    public ReportCodeLocatingTemplateServiceImpl(ReportCodeLocatingTemplateDao reportCodeLocatingTemplateDao) {
        this.reportCodeLocatingTemplateDao = reportCodeLocatingTemplateDao;
    }

    /**
     * 根据行号列号查询编码
     *
     * @param lineNumber   行号
     * @param columnNumber 列号
     * @return 指标编码
     */
    @Override
    public List<String> selectIndexIdByLineNumberAndColumnNumber(int lineNumber, int columnNumber) {
        return reportCodeLocatingTemplateDao.selectIndexIdByLineNumberAndColumnNumber(lineNumber, columnNumber);
    }
}
